const path = require('path');

module.exports = {
    //环境
    mode: 'development',
    //入口
    entry: './src/index.js',
    // 出口
    output: {
        filename: 'bundle.js'
    },
    devServer: {
        //静态资源
        contentBase: path.join(__dirname, "static"),
        //不压缩
        compress: false,
        port: 8080,
        //虚拟打包，不会生成 bundle.js
        publicPath: "/xuni/"
    }
}